import request from '@/utils/request';

// 获取当前项目列表
function getprojectlist(userId, p, ps, groupName, name, status) {
  return request({
    url: '/project/page/',
    method: 'GET',
    params: {
      userId, p, ps, groupName, name, status
    }
    // emulateJSON: true

  });
}
// 获取项目列表
function getprojectList(params) {
  return request({
    url: '/project/page/',
    method: 'GET',
    params
    // emulateJSON: true

  });
}

// 修改当前项目的状态
function modifyStatus(data) {
  return request({
    url: '/prepareLesson/status/',
    method: 'POST',
    data
    // emulateJSON: true

  });
}

// 删除当前项目
function delProject(id) {
  return request({
    url: '/project',
    method: 'DELETE',
    params: {
      id
    }
    // emulateJSON: true

  });
}

export { getprojectlist, modifyStatus, delProject, getprojectList };
